import requests
import re
import json
from multiprocessing import Pool

def get_one_page(url):
    response = requests.get(url)
    if response.status_code == 200:
        response.encoding = 'utf8'
        return response.text
    return None

def parse_one_page(html):
    pattern = re.compile(r'<tr.*?<td>(.*?)</td>.*?align.*?>(.*?)</div>.*?<td>(.*?)</td>.*?<td>(.*?)</td>.*?<td>(.*?)</td>', re.S) 
    items = re.findall(pattern, html)
    for item in items:
        print(item)
def main():
    url = "http://www.zuihaodaxue.cn/zuihaodaxuepaiming2016.html"
    html = get_one_page(url)
    parse_one_page(html)
    
if __name__ == '__main__':
    main()
